:root {
    --primary-blue: #e24021;
    --secondary-gold: #842a12;
    --light-gray: #f4f4f4;
    --dark-gray: #333;
    --white: #ffffff;
    --success-green: #28a745;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    position: relative;
    background-image: url('BACK.png');
    background-size: cover;
    background-position: center;
    margin: 0;
    text-align: justify;
}
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* Ajusta el color y la opacidad */
    z-index: -1; /* para que quede detrás del contenido */
}

.container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    gap: 2rem;
}

header {
    background: #fff;
    padding: 0px 2%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 5px; /* espacio entre el logo y el texto */
}

.logo-img {
    height: 65px; /* tamaño del logo */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 5px;
}

nav .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #51dadf;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ffb655;
}

.cta-button, .cta-button-nav {
    background: #ffb655;
    color: #fff;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.cta-button-nav {
    background: #51dadf;
    color: var(--dark-color);
}

.cta-button:hover, .cta-button-nav:hover {
    transform: translateY(-3px);
    background-color: #5cc3c2;
}

.cta-button-nav:hover {
     background-color: #ffda44;
}

.course-info {
    flex: 2;
    min-width: 300px;
}

.sidebar {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

h1 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

h2 {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--secondary-gold);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.course-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.course-info .card + .card {
    margin-top: 2rem;
}

.benefits ul, .syllabus ul {
    list-style: none;
    padding: 0;
}

.benefits li, .syllabus li {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.benefits i, .syllabus i, .unam-info i, h2 i {
    color: var(--secondary-gold);
    margin-right: 10px;
}

.pricing {
    text-align: center;
    border: 2px solid var(--secondary-gold);
}

.price {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 1rem 0;
}

.offer {
    color: var(--success-green);
    font-weight: bold;
}

#enroll-button {
    background-color: #a05638;
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    margin-top: 1rem;
}

#enroll-button:hover {
    background-color: #be7253;
    transform: scale(1.02);
}

.unam-info p {
    font-size: 0.95rem;
}

.unam-info .unam-logo-card {
    display: block;
    max-width: 150px;
    margin: 1.5rem auto 0;
}

footer {
    background-color: var(--dark-gray);
    color: var(--white);
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }
    h1 {
        font-size: 2rem;
    }
}
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
    margin-left: 10px; /* separación respecto al logo */
}

.hamburger span {
    display: block;
    height: 3px;
    background: #ffb655;
    border-radius: 2px;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        position: absolute;
        top: 70px; /* debajo del header */
        left: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 999;
    }
    nav ul li {
        margin: 1rem 0;
        text-align: center;
    }
    nav ul.show {
        display: flex;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2.2rem;
    }
    
    .main-header {
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }

    #courses-section {
        margin-top: -3rem;
    }
}
@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }
    h1 {
        font-size: 2rem;
    }
}
footer {
    background-color: #2c3e50;
    color: white;
    padding: 25px 0;
    text-align: center;
    width: 100%;
}

.social-media {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px; /* Space between icons */
    margin-bottom: 15px;
}

.social-media a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px; 
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-media a:hover {
    color: #3498db; 
    transform: translateY(-3px); 
}

/* Icon specific styles */
.social-media i {
    font-size: 1.8rem;
}

.footer-text {
    font-size: 0.9rem;
    color: #bdc3c7;
    margin-top: 10px;
}
@media (max-width: 600px) {
    .social-media {
        gap: 15px; /* menos espacio entre íconos */
    }
    .social-media i {
        font-size: 1.3rem; /* íconos más pequeños */
    }
    .footer-text {
        font-size: 0.8rem; /* texto más legible en móvil */
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none; /* Simple responsive behavior for now */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
}